package com.szxb.facebus.db.entity.bean;

import android.text.TextUtils;

import java.util.List;

/**
 * 作者：Tangren on 2018-12-03
 * 包名：com.szxb.jcbus.entity.bean
 * 邮箱：996489865@qq.com
 * TODO:一句话描述
 */

public class CheckResponse {

    /**
     * ftpurl : 172.28.86.16
     * ftpport : 21
     * data : [{"MCHID":"10000001","UPDATE_EFFECT":"1","APPRMK":"02","APPCODE":"1","SOFTWAREID":"20180926151615","APPFILE":"3.1.00_180926_bj_qi_app.apk","UPDATE_MODE":"1","SOFTWARE_ID":"43e5d766854c4b1aae0a19d4bf82218c","APPNAME":"3.1.00_180926_bj_qi_app","APKPACKAGE":"com.szxb.jcbus","SYSTEMNAME":"车载程序","APPVER":"3.1.00"}]
     * ftpuser : ftpuser
     * rescode : 0000
     * result : success
     * ftppwd : Black1114@163
     */

    private boolean isSuccess;
    private String ftpurl;
    private int ftpport;
    private String ftpuser;
    private String rescode;
    private String result;
    private String ftppwd;
    public List<DataBean> data;

    public boolean isSuccess() {
        return TextUtils.equals(rescode, "0000");
    }

    public String getFtpurl() {
        return ftpurl;
    }

    public void setFtpurl(String ftpurl) {
        this.ftpurl = ftpurl;
    }

    public int getFtpport() {
        return ftpport;
    }

    public void setFtpport(int ftpport) {
        this.ftpport = ftpport;
    }

    public String getFtpuser() {
        return ftpuser;
    }

    public void setFtpuser(String ftpuser) {
        this.ftpuser = ftpuser;
    }

    public String getRescode() {
        return rescode;
    }

    public void setRescode(String rescode) {
        this.rescode = rescode;
    }

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }

    public String getFtppwd() {
        return ftppwd;
    }

    public void setFtppwd(String ftppwd) {
        this.ftppwd = ftppwd;
    }

    public List<DataBean> getData() {
        return data;
    }

    public void setData(List<DataBean> data) {
        this.data = data;
    }

    public class DataBean {
        /**
         * MCHID : 10000001
         * UPDATE_EFFECT : 0开机更新  1立即生效
         * APPRMK : 02 版本
         * APPCODE : 1
         * SOFTWAREID : 20180926151615
         * APPFILE : 3.1.00_180926_bj_qi_app.apk
         * UPDATE_MODE : 1
         * SOFTWARE_ID : 43e5d766854c4b1aae0a19d4bf82218c
         * APPNAME : 3.1.00_180926_bj_qi_app
         * APKPACKAGE : com.szxb.jcbus
         * SYSTEMNAME : 车载程序
         * APPVER : 3.1.00
         */

        private String MCHID;
        private String UPDATE_EFFECT;
        private String APPRMK;
        private String APPCODE;
        private String SOFTWAREID;
        private String APPFILE;
        private String UPDATE_MODE;
        private String SOFTWARE_ID;
        private String APPNAME;
        private String APKPACKAGE;
        private String SYSTEMNAME;
        private String APPVER;

        public String getMCHID() {
            return MCHID;
        }

        public void setMCHID(String MCHID) {
            this.MCHID = MCHID;
        }

        public String getUPDATE_EFFECT() {
            return UPDATE_EFFECT;
        }

        public void setUPDATE_EFFECT(String UPDATE_EFFECT) {
            this.UPDATE_EFFECT = UPDATE_EFFECT;
        }

        public String getAPPRMK() {
            return APPRMK;
        }

        public void setAPPRMK(String APPRMK) {
            this.APPRMK = APPRMK;
        }

        public String getAPPCODE() {
            return APPCODE;
        }

        public void setAPPCODE(String APPCODE) {
            this.APPCODE = APPCODE;
        }

        public String getSOFTWAREID() {
            return SOFTWAREID;
        }

        public void setSOFTWAREID(String SOFTWAREID) {
            this.SOFTWAREID = SOFTWAREID;
        }

        public String getAPPFILE() {
            return APPFILE;
        }

        public void setAPPFILE(String APPFILE) {
            this.APPFILE = APPFILE;
        }

        public String getUPDATE_MODE() {
            return UPDATE_MODE;
        }

        public void setUPDATE_MODE(String UPDATE_MODE) {
            this.UPDATE_MODE = UPDATE_MODE;
        }

        public String getSOFTWARE_ID() {
            return SOFTWARE_ID;
        }

        public void setSOFTWARE_ID(String SOFTWARE_ID) {
            this.SOFTWARE_ID = SOFTWARE_ID;
        }

        public String getAPPNAME() {
            return APPNAME;
        }

        public void setAPPNAME(String APPNAME) {
            this.APPNAME = APPNAME;
        }

        public String getAPKPACKAGE() {
            return APKPACKAGE;
        }

        public void setAPKPACKAGE(String APKPACKAGE) {
            this.APKPACKAGE = APKPACKAGE;
        }

        public String getSYSTEMNAME() {
            return SYSTEMNAME;
        }

        public void setSYSTEMNAME(String SYSTEMNAME) {
            this.SYSTEMNAME = SYSTEMNAME;
        }

        public String getAPPVER() {
            return APPVER;
        }

        public void setAPPVER(String APPVER) {
            this.APPVER = APPVER;
        }

    }
}
